package com.yuantu.judiciary.service;

import com.alipay.easysdk.payment.common.models.AlipayTradeCreateResponse;
import com.yuantu.judiciary.model.api_ali.AlipayUserInfoShareResponseDTO;
import com.yuantu.judiciary.model.dto.AddOrderDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.LinkedHashMap;

/**
 * 支付宝小程序
 *
 * @author syw
 * @since 2023-12-20
 **/
public interface IApiAliAppletService {

    AlipayUserInfoShareResponseDTO getUserInfo(String code);

    String getUserPhoneInfo(String param, String sign);

    String identificationInit(String username, String idNumber);

    String identificationCertify(String certifyId);

    String identificationQuery(String certifyId);

    String getUserId(Long accountId, String authCode);

    AlipayTradeCreateResponse addOrder(Long accountId, AddOrderDTO addOrderDTO);

    AlipayTradeCreateResponse addOrderForMembershipCard(Long accountId, AddOrderDTO addOrderDTO);

    LinkedHashMap<String, String> callOrder(HttpServletRequest request);

    LinkedHashMap<String, String> callOrderForMembershipCard(HttpServletRequest request);

    String tradeRefund (String tradeNo, String refundAmount, String refundReason, String refundNo);

    String queryRefund(String tradeNo, String refundNo);



}
